/*
 * DTOCliente.h
 *
 *  Created on: Oct 23, 2011
 *      Author: gonzalo
 */

#ifndef DTOCLIENTE_H_
#define DTOCLIENTE_H_

#include "DTO.h"
#include "DTOShipStatus.h"

enum ClientStatus {CONNECTED, REQ_SYNCRONIZE ,DISCONECTED};

class DTOCliente: public DTO {
public:
	DTOCliente(std::string& aDeserealizar,std::string owner);
	DTOCliente(std::string nombre,ClientStatus status,DTOShipStatus* shipStatus,bool esAdmin);
	virtual ~DTOCliente();

	virtual std::string serializar();
    DTOShipStatus *getShip() const;
    ClientStatus getStatus() const;
    bool getAdmin();
    void setStatus(ClientStatus clientStatus);
    void setAdmin();
protected:
    virtual void deserializar(std::string & string, std::string owner);
private:
    DTOShipStatus *ship;
    ClientStatus status;
    bool esAdmin;
};

#endif /* DTOCLIENTE_H_ */
